﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Rmlife.Site;
using Rmlife.Model;
using Rmlife.Common;
namespace Rmlife.Web.Tools.Handlers
{
    /// <summary>
    /// cosmelistHandler 的摘要说明
    /// </summary>
    public class cosmelistHandler : AJAXHandlerBase
    {
        public override void AJAXHandler(string action)
        {
            switch (action)
            {
                case "getTreeList":
                    getTreeList();
                    break;
                default:
                    break;
            }
        }
        /// <summary>
        /// 更新特卖日次信息
        /// </summary>
        private void getTreeList()
        {
            List<QueryTreeInfo> listTree = Cosmes.GetAllMenuList();
            string jsonStr = string.Empty;
            jsonStr = JsonHelp<List<QueryTreeInfo>>.ToJsonString(listTree);
            Response.Write(jsonStr);
            Response.End();
        }
    }
}